<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <div class="new"></div>
    <button>1</button>
    <button>2</button>
    <button>3</button>
    <script type="text/javascript">
        var btns = document.getElementsByTagName('button');

        for (var i = 0; i < 3; i++) {
            click(btns[i]);
        }
        function click(btn) {
            btn.onclick = function () {
                alert(this.innerHTML);
            };
        };
        document.write(window.person || (window.person = 'xm'));
        document.write(person1 || (person1 = 'xm'));
    </script>
    <!-- <script src="js/addLoadEvent.js"></script>
    <script src="js/getHTTPObject.js"></script>
    <script src="js/getNewContent.js"></script> -->

</body>

</html>